package com.ruoyi.hd.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品记录管理对象 hd_commodity_time
 * 
 * @author ruoyi
 * @date 2022-05-29
 */
public class HdCommodityTime extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品编码 */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 商品批次号 */
    @Excel(name = "商品批次号")
    private String batch;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String type;

    /** 商品状态 */
    @Excel(name = "商品状态")
    private String status;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imagUrl;

    /** 文件地址 */
    @Excel(name = "文件地址")
    private String fileUrl;

    /** 关联商品编码 */
    @Excel(name = "关联商品编码")
    private String commodityId;

    private String dateType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setBatch(String batch) 
    {
        this.batch = batch;
    }

    public String getBatch() 
    {
        return batch;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setImagUrl(String imagUrl) 
    {
        this.imagUrl = imagUrl;
    }

    public String getImagUrl() 
    {
        return imagUrl;
    }
    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }
    public void setCommodityId(String commodityId) 
    {
        this.commodityId = commodityId;
    }

    public String getCommodityId() 
    {
        return commodityId;
    }

    public String getDateType() {
        return dateType;
    }

    public void setDateType(String dateType) {
        this.dateType = dateType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("price", getPrice())
            .append("batch", getBatch())
            .append("type", getType())
            .append("status", getStatus())
            .append("imagUrl", getImagUrl())
            .append("fileUrl", getFileUrl())
            .append("commodityId", getCommodityId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
